package net.thxjj.adminServer.dao;

import net.thxjj.adminServer.entity.aep.SmokeData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SmokeDataDao {
    public void saveSmokeData(List<SmokeData> list);
    public void saveSingleSmokeData(SmokeData smokeData);
    public SmokeData getNewestSmokeAlarm(@Param("device_id") String device_id);
    public SmokeData getNewestSmokeAlarmByTime(@Param("device_id") String device_id,@Param("time") long time);
    public SmokeData getNewestSmokeNormal(@Param("device_id") String device_id);
    public SmokeData getNewestSmokeNormalByTime(@Param("device_id") String device_id,@Param("time") long time);
    public SmokeData getNewestSmoke(@Param("device_id") String device_id);
    public SmokeData getEarliestSmoke(@Param("device_id") String device_id);
    public List<SmokeData> getSmokeDataAtTime(@Param("device_id") String device_id,@Param("start_time") long start_time,@Param("end_time") long end_time);
    public List<SmokeData> getAllSmokeData();
}
